﻿using System.Drawing;

namespace GraphDrawing2.V2.Concrete.Model
{
    public class ViewTranslationHandler : AbstractListener
    {
        readonly Model2 context;
        Point prevPoint;

        public ViewTranslationHandler(Model2 context, Point prevPoint)
        {
            this.context = context;
            this.prevPoint = prevPoint;
        }

        public override void OnMouseUp()
        {
            context.CanvasModel.Listeners.Remove(this);
        }

        public override void OnMouseMove()
        {

            context.View.UpdateView();
        }
    }
}